// ============================== 导入依赖 ============================== //

import state from '@admin/views/Maintain/Backup/BackupCategory/store/state'

// ============================== 导出状态集 ============================== //

export default {
  // —————————————————————————————— 常量状态 —————————————————————————————— //

  /**
   * 接口
   */
  API: {
    ...state.API,
    transTree(arr) {
      arr.forEach((item) => {
        item.children = []
      })
      return arr
    },
  },

  /**
   * 映射
   */
  MAP: state.MAP,

  /**
   * 结构树字段 (可增加)
   */
  TREE_FIELD: ['children', 'id', 'spareName', 'model'],
}
